package com.teemor.blog.service;

import com.teemor.blog.bean.condition.TbCommentCondition;
import com.teemor.blog.bean.entity.TbComment;
import java.util.List;

/**
 * @author: zhoulk
 * @Description: 原子服务
 * @date: 2019/11/26 14:50:14
 */
public interface ICommentService {
     /** 
   * @Function: com.teemor.blog.service.ICommentService.countComment
   * @Description: 数量查询接口
   * @param: condition
   * @return: int
   * @version: v1.0.0
   * @author: zhoulk
   * @date: 2019/11/26 14:50:14
   *
   * Modification History:
   * Date         author          Version            Description
   *------------------------------------------------------*
   * 2019/11/26 14:50:14     zhoulk           v1.0.0             修改原因
   *
   */
    int countComment(TbCommentCondition condition);

     /** 
   * @Function: com.teemor.blog.service.ICommentService.qryComments
   * @Description: 列表查询接口
   * @param: condition
   * @return: List<TbComment>
   * @version: v1.0.0
   * @author: zhoulk
   * @date: 2019/11/26 14:50:14
   *
   * Modification History:
   * Date         author          Version            Description
   *------------------------------------------------------*
   * 2019/11/26 14:50:14     zhoulk           v1.0.0             修改原因
   *
   */
    List<TbComment> qryComments(TbCommentCondition condition);

     /** 
   * @Function: com.teemor.blog.service.ICommentService.qryCommentById
   * @Description: 根据主键查询
   * @param: commentId
   * @return: TbComment
   * @version: v1.0.0
   * @author: zhoulk
   * @date: 2019/11/26 14:50:14
   *
   * Modification History:
   * Date         author          Version            Description
   *------------------------------------------------------*
   * 2019/11/26 14:50:14     zhoulk           v1.0.0             修改原因
   *
   */
    TbComment qryCommentById(Integer commentId);

     /** 
   * @Function: com.teemor.blog.service.ICommentService.addComment
   * @Description: 新增接口
   * @param: inParam
   * @return: int
   * @version: v1.0.0
   * @author: zhoulk
   * @date: 2019/11/26 14:50:14
   *
   * Modification History:
   * Date         author          Version            Description
   *------------------------------------------------------*
   * 2019/11/26 14:50:14     zhoulk           v1.0.0             修改原因
   *
   */
    int addComment(TbComment inParam);

     /** 
   * @Function: com.teemor.blog.service.ICommentService.updCommentById
   * @Description: 根据Id更新接口
   * @param: inParam
   * @return: int
   * @version: v1.0.0
   * @author: zhoulk
   * @date: 2019/11/26 14:50:14
   *
   * Modification History:
   * Date         author          Version            Description
   *------------------------------------------------------*
   * 2019/11/26 14:50:14     zhoulk           v1.0.0             修改原因
   *
   */
    int updCommentById(TbComment inParam);
}